package com.ljkj.blockpay.ui.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseActivity;
import com.ljkj.blockpay.basedata.BasePresenterImpl;
import com.ljkj.blockpay.databinding.ActivitySelectLanuguageBinding;
import com.ljkj.blockpay.presenter.SelectPresenter;
import com.ljkj.blockpay.widget.ClickListener;

public class SelectLanuguageActivity extends BaseActivity<ActivitySelectLanuguageBinding, SelectPresenter> implements ClickListener {


    @Override
    public int initContentView() {
        return R.layout.activity_select_lanuguage;
    }

    @Override
    protected SelectPresenter createPresenter() {
        return null;
    }


    @Override
    protected void init(Bundle savedInstanceState) {
        binding.setOnClick(this::onClick);
        binding.tvTitle.setLeftBackFinish(this);
        binding.tvTitle.setTitleContent(R.string.showlanguage);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.ll_en:

                break;
            case R.id.ll_ch:
                //默认选择中文
                binding.ivCh.setSelected(true);
                if (binding.ivCh.isSelected()== true){
                    binding.tvCh.setTextColor(ContextCompat.getColor(this,R.color.color_1E50EB));
                } else {
                    binding.tvCh.setTextColor(ContextCompat.getColor(this,R.color.black));
                }


                break;
            default:
                break;
        }

    }
}